package cn.itcast.nems.order.service;


import cn.itcast.nems.order.dao.entity.OrderCustomerRelationship;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 销售订单-客户关系 服务类
 * </p>
 *
 * @author liyong
 * @since 2023-08-31
 */
public interface OrderCustomerRelationshipService extends IService<OrderCustomerRelationship> {
    /**
     * 根据orderId获取订单与客户的关联关系
     *
     * @param orderId 订单ID
     * @return cn.itcast.nems.order.dao.entity.OrderCustomerRelationship
     * @author 高昌露
     * @since 2023/12/14 15:30
     */
    OrderCustomerRelationship queryByOrderId(String orderId);

    List<Map<String, Object>> orderCustomerRelationships(String customerName);

    Map<String, Object> orderCustomerRelationship(String customerId);

    /**
     * 功能描述：保存并脱敏
     *
     * @param entity
     * @return
     * @author 刘曙
     * @update:[变更日期YYYY-MM-DD][更改人姓名][变更描述]
     * @since 2023年9月22日
     */
    boolean saveWithDesensitized(OrderCustomerRelationship entity);
}
